<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/echarts/4.2.1/echarts.simple.min.js"></script>
    <button id="text">123</button>
</head>

<body>
    <div id="myChartPie" style="width: 100%; height: 400px; "></div>
    <button id="btn">点击跳转</button>
</body>
<script>
    var echartsPie = echarts.init(document.getElementById("myChartPie"));
    var btn=document.getElementById("btn");
    var text=document.getElementById("text");
    var option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [],
            type: 'line'
        }]
    };
    echartsPie.setOption(option);

    btn.onclick=function  () {
        javascript: myWebView.jump();
    };
    var arr =[];
    function t_text (data)
    {
        arr.push(data);
        option.series[0].data=arr;
        echartsPie.setOption(option);
    }



</script>

</html>